package com.lanou3g.code0409.common;

import java.util.Scanner;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/9;
 * Otherwise, I don't know who created it either
 */

public class RepeatTest {
    public static void main(String[] args) {
        // 用户输入2次密码 判断 是否一致
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入密码:");
        String pwd = scanner.nextLine();
        System.out.println("请输入确认密码");
        String pwd2 = scanner.nextLine();

        if (pwd.equals(pwd2)){
            System.out.println("密码一致");
        }else {
            System.out.println("密码不一致");
        }

    }
}
